package com.wang.myblog.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin implements Serializable {

    private static final long serialVersionUID = -10283078166005266L;

    private Integer id;

    private String img;

    private String name;

    private String password;

    private String sex;

    @JsonFormat(pattern = "yyyy年MM月dd日", timezone = "GMT+8")
    private Date birthday;

    private String address;

    private String email;

    private String phone;

    private String qq;

    private String wechat;

    private String career;

    private String info;

    private Date recentLogin;
}
